import 'package:exsun_plate_app/common/constant.dart';
import 'package:flutter/material.dart';

class SearchAreaPage extends StatefulWidget {
  @override
  SearchAreaPageState createState() => new SearchAreaPageState();
}

class SearchAreaPageState extends State<SearchAreaPage> {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        elevation: 0,
        backgroundColor: Colors.transparent,
        brightness: Brightness.light,
        centerTitle: true,
        leading: Builder(builder: (BuildContext context) {
          return IconButton(
            icon: Image.asset('images/search_back.png'),
            onPressed: () {
              Navigator.pop(context);
            },
          );
        }),
        title: new Text(
          '选择区域',
          style: TextStyle(
            color: Constants.textColor,
            fontSize: 16.0,
          ),
        ),
        actions: <Widget>[
          Container(
            margin: EdgeInsets.fromLTRB(0, 0, 0, 0),
            width: 80,
            child: Center(
              child: FlatButton(
                child: Text(
                  "确定",
                  style:
                      TextStyle(color: Constants.mainGreenColor, fontSize: 16),
                ),
                colorBrightness: Brightness.dark,
                onPressed: () {},
              ),
            ),
          ),
        ],
      ),
    );
  }

  @override
  void initState() {
    super.initState();
  }

  @override
  void dispose() {
    super.dispose();
  }

  @override
  void didUpdateWidget(SearchAreaPage oldWidget) {
    super.didUpdateWidget(oldWidget);
  }

  @override
  void didChangeDependencies() {
    super.didChangeDependencies();
  }
}
